package com.example.administrator.orchardeveryday.bean.dbbean;

import android.database.Cursor;

import com.example.administrator.orchardeveryday.dao.DbBean;

import java.io.Serializable;

/**
 * Created by Administrator on 15-10-25.
 */
public class User implements Serializable{
    private long id;
    private String name;
    private String pwd;

    public User() {
    }

    public User(long id, String name, String pwd) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
    }
    public User(Cursor cursor) {
       name=cursor.getString(cursor.getColumnIndex(DbBean.UserDb.USER_NAME));
       pwd=cursor.getString(cursor.getColumnIndex(DbBean.UserDb.USER_PWD));
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }
}
